#include <Wire.h>

void setup() {
  Wire.begin(5, 6);  // SDA = IO5, SCL = IO4
  Serial.begin(115200);
  delay(200);
  Serial.println("🔍 扫描 I2C 设备...");
  for (uint8_t address = 1; address < 127; address++) {
    Wire.beginTransmission(address);
    if (Wire.endTransmission() == 0) {
      Serial.printf("✅ 找到设备: 0x%02X (7位地址)\n", address);
    }
  }
}

void loop() {}
